<template>
  <header id="header">
    <!-- <router-link v-show="title != '云管家'" class="left" tag="h2" to="./"><img src="@/assets/turn.png"></router-link> -->
    <slot></slot>
    <h1 class="old">{{title}}</h1>
    
  </header>
</template>

<script>
export default {
  name: "Header",
  props:{
    title:{
      type:String,
      default:'云管家'
    }
  }
};
</script>

<style scoped>
#leg{
  height:50px;
}
#header {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #128ae7, #12ade7);
  clear: both;
  position: fixed;
  top:0px;
  left:0px;
  right:0px;
  z-index: 999999;
}
.old {
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  margin: 0;
  color: white;
}
.leg{
  text-align: center;
  line-height: 50px;
  font-size: 16px;
  color: white;
}
.left{
  float: left;
  height: 50px;
  line-height: 50px;
  font-size: 16px;
  margin-left:15px; 
  margin-right: -55px;
  transform: translateY(7px);
  color: white;
}
</style>